//
//  TMNavView.m
//  TMBD Movie App
//
//  Created by zhangkai on 2023/4/2.
//

#import "TMNavView.h"

@implementation TMNavView

- (instancetype)init{
    if (self = [super init]) {
        
        self.frame = CGRectMake(0, 0, kScreenW, kNavgationBarHeight+State_Bar_H);
        
        
        UIButton *back = [UIButton new];
        [back setImage:[UIImage imageNamed:@"fanhui"] forState:UIControlStateNormal];
        [self addSubview:back];
        [back mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(24);
            make.left.equalTo(self).offset(15);
            make.bottom.equalTo(self).offset(-10);
        }];
        [back addTarget:self action:@selector(clickBack) forControlEvents:UIControlEventTouchDown];
        
    }
    return  self;
}

- (void)clickBack{
    
    [kCurrentNavgationController popViewControllerAnimated:YES];
    
}

@end
